package com.yunhe.xyxxgl.control;

import com.yunhe.xyxxgl.view.AdminHome;
import com.yunhe.xyxxgl.view.TeacherHome;

/**
 * Created by Administrator on 2017/8/9 0009.
 */
public class HomeControllerFactory {
    public static HomeController  creat(int type){
        HomeController homeController = null;
        switch(type){
            case 1:homeController = TeacherHomeController.getInstance();break;
            case 2:homeController = AdminHomeController.getInstance();break;
        }
        return homeController;
    }
}
